package xj.util.gui;

import java.awt.Component;
import java.awt.Rectangle;

/*
 * The following interface describes what a popup should implement.
 * We do this because JPopupMenu uses popup that can be windows or
 * panels. 
 */
interface Popup {
  public void showPopup(Component invoker);

  public boolean isShowing();

  public void hidePopup();

  public Rectangle getBoundsOnScreen();

  public void setLocationOnScreen(int x, int y);

  public void setSize(int width, int height);

  public int getWidth();

  public int getHeight();

  public void addComponent(Component aComponent, Object constraints);

  public void removeComponent(Component c);

  public void pack();
}
